import { RouteRecordRaw } from 'vue-router';

export default {
  path: '/users',
  name: 'users',
  redirect: '/users/list',
  component: () => import('@/layout/index.vue'),
  meta: {
    title: '用户管理',
    icon: 'el-icon-user-filled',
    sort: 3
  },
  children: [
    {
      path: '/users/list',
      name: 'userlist',
      component: () => import('@/views/users/list/index.vue'),
      meta: {
        title: '用户列表',
        icon: 'el-icon-avatar'
      }
    },
    {
      path: '/users/dlylist',
      name: 'userdlylist',
      component: () => import('@/views/users/dlylist/index.vue'),
      meta: {
        title: '抖羚羊用户列表',
        icon: 'el-icon-avatar',
        roles: ['adminSp', 'admin']
      }
    }
  ]
} as RouteRecordRaw;
